class DBInfo{

  DBInfo(
      this.dbID,
      this.dbName,
      this.dbDesc,
      this.dbHost,
      this.dbPort,
      this.dbUrl
      );

  int? dbID;
  String dbName;
  String dbDesc;
  String dbHost;
  String dbPort;
  String dbUrl;

  DBInfo.fromJson(Map<String, dynamic> json)
      : dbID=json['db_id'],
        dbName = json['db_name'],
        dbDesc = json['db_desc'],
        dbHost = json['db_host'],
        dbPort = json['db_port'],
        dbUrl = json['db_url'];



  Map<String, Object?> toMap()=> {
    'db_id':dbID,
    'db_name':dbName,
    'db_desc':dbDesc,
    'db_host':dbHost,
    'db_port':dbPort,
    'db_url':dbUrl
  };

}